package com.dy.controller;


import com.dy.entity.Cinema;
import com.dy.service.ICinemaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dy
 * @since 2022-04-13
 */
@RestController
@RequestMapping("/cinema")
public class CinemaController {
    @Autowired
    private ICinemaService cinemaService;

    @GetMapping("/selectAllCiname")
    public List<Cinema> selectAllCiname(){
        return cinemaService.list();
    }
}
